<?php

use yii\db\Migration;

class m171211_035605_alter_customer_branchaccount extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%customer_branchaccount}}','puzzle_cash',$this->decimal(10,2)->defaultValue(0)->comment('益智类型可用金额不可提现 1'));
        $this->addColumn('{{%customer_branchaccount}}','body_cash',$this->decimal(10,2)->defaultValue(0)->comment('形体类型可用金额不可提现 3'));
    }

    public function safeDown()
    {
        $this->dropColumn('{{%customer_branchaccount}}','puzzle_cash');
        $this->dropColumn('{{%customer_branchaccount}}','body_cash');
    }
}
